import request from "../../utils/request";

const getPage = params => request({
  url: '/v1/user/page',
  method: 'get',
  params
});
const create = (data) => request({
  url: 'v1/user',
  method: 'post',
  data
});
const update = (data) => request({
  url: `v1/user/${data.Id}`,
  method: 'put',
  data
});
const UpdateUserPwd = (data) => request({
  url: `v1/user/${data.Id}/pwd`,
  method: 'put',
  data
});

const UpdateUserstatus = (params) => request({
  url: `v1/user/${params.id}/status`,
  method: 'put',
  params
});

export default {
  getPage,
  create,
  update,
  UpdateUserPwd,
  UpdateUserstatus
}
